import {
  createSSRApp
} from 'vue'
import App from './App.vue'

// 退出登录
import LogoutButton from '@/components/LogoutButton.vue'
// 顶部导航
import NavBar from '@/components/NavBar.vue'
// 状态栏占位
import StatusBar from '@/components/StatusBar.vue'
// 人员选择弹窗
// import PopupSelectPeople from '@/components/pupop/PopupSelectPeople.vue'
// // 多选的弹窗
// import PopupMultipleList from '@/components/pupop/PopupMultipleList.vue'
// // 数据字典弹窗(也可做单选的弹窗)
// import PopupSimpleList from '@/components/pupop/PopupSimpleList.vue'
// // 树形展示
// import PopupTreeList from '@/components/pupop/PopupTreeList.vue'
// // 录音
// import PopupRecorder from '@/components/pupop/PopupRecorder.vue'
// // 文件图标
// import FileIcon from '@/components/FileIcon.vue'
// // 资产的扫码
// import AssetScan from '@/components/common/AssetScan.vue'
// // 资产选择
// import AssetSelect from '@/components/common/AssetSelect.vue'
// // 文件上传组
// import FileUploadGroup from '@/components/FileUploadGroup.vue'
// // 文件列表展示
// import FileList from '@/components/FileList.vue'

// // import VConsole from 'vconsole';
// // const vConsole = new VConsole();


export function createApp() {
  const app = createSSRApp(App);

  app.component('StatusBar', StatusBar); // <status-bar></status-bar>
  app.component('LogoutButton', LogoutButton); // <logout-button></logout-button>
  app.component('NavBar', NavBar); // <nav-bar></nav-bar>
  // app.component('PopupSelectPeople', PopupSelectPeople); // <popup-select-people />
  // app.component('PopupMultipleList', PopupMultipleList); // 多选
  // app.component('PopupSimpleList', PopupSimpleList); // 单选
  // app.component('PopupTreeList', PopupTreeList); // 树形选择
  // app.component('PopupRecorder', PopupRecorder); // 录音
  // app.component('FileIcon', FileIcon); // 文件图标
  // app.component('AssetScan', AssetScan); //资产扫码
  // app.component('AssetSelect', AssetSelect); //资产选择
  // app.component('FileUploadGroup', FileUploadGroup); // 文件上传组
  // app.component('FileList', FileList); // 文件列表展示

  return {
    app
  }
}